package ooday02;
/** 人:超类 */
public class Person {
    String name;//名字
    int age;//年龄
    String address;//家庭地址
    Person(String name,int age,String address){
        this.name = name;
        this.age = age;
        this.address = address;
    }
    void eat(){//吃饭
        System.out.println(name+"正在吃饭。。。");
    }
    void sleep(){//睡觉
        System.out.println(name+"正在睡觉");
    }
    void sayHi(){//打招呼
        System.out.println("大家好我叫"+name+",今年"+age+"岁了,家住在"+address);
    }
}